package org.nepu.scr.indexrate.ratelongevity;

import lombok.AllArgsConstructor;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.nepu.scr.indexrate.ratecompliance.compliance.params.ComplianceData;
import org.nepu.scr.indexrate.ratecompliance.complianceparams.ComplianceParamsData;
import org.nepu.scr.indexrate.ratelongevity.longevity.params.LongevityData;
import org.nepu.scr.indexrate.ratelongevity.longevityparams.LongevityParamsData;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

@Slf4j
@Service
@AllArgsConstructor
public class LongevityMapService {

    //模版内容
    @SneakyThrows
    public Map<String,Object> buildContentMap(String dataId, String paramsId, LongevityData exportData, LongevityParamsData exportParamsData){
        Map<String, Object> contentMap = new HashMap<>();
//        contentMap.put("岗位证书1", exportData.getB5().getJobCertificate()?"是":"否");
//        contentMap.put("岗位证书检查结果1", exportData.getB5().getJobCertificate()?"合格":"不合格");
//        contentMap.put("健康证", exportData.getB5().getHealthCertificate()?"是":"否");
//        contentMap.put("健康证检查结果", exportData.getB5().getHealthCertificate()?"合格":"不合格");
//        contentMap.put("三证", exportData.getB5().getFiveCertificate()==1?"是":"否");
//        contentMap.put("三证检查结果", exportData.getB5().getFiveCertificate()==1?"√":"不合格");
        return  contentMap;
    }

}
